.card {
    display: inline-block;
    vertical-align: text-top;
    min-width: 140px;
    border: 1px solid gray;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(10,10,10, 0.2);
}
.card header {
    display: flex;
    padding: 5px 20px;
    padding-right: 10px;
    font-size: 12px;
    border-bottom: 1px solid gray;
    background: rgb(240, 240, 240);
    cursor: pointer;
}
.card header>span {
    flex:auto;
    padding-right: 40px;
}
.card header>a {
    flex: 0 0 15px;
    cursor: pointer;
}
.card>div {
    display: block;
    padding: 10px 20px 20px 20px;
}
.card>div p {
    margin: 0;
    color: red;
}

.cardCollapse header {
    border-bottom: none;
}
.cardCollapse>div {
    display: none;
}